<template>
<div class="">
  <p>Count:{{count}}</p>
  <p>doubleCount:{{doubleCount}}</p>
  <button @click="test">自增</button>
  <button @click="usertest">测试用户信息</button>
</div>
</template>

<script setup>
import {ref, reactive, onMounted} from "vue";
import axios from '@/plugins/axios.js'
import {testCounterStore} from '@/stores/test.js'
const conterStore = testCounterStore();
import loginUser from '@/stores/LoginUser.js'
let userModel = loginUser().userModel;


const count = ref(0);
const doubleCount = ref(0);

const test = ()=>{
  conterStore.incr();
  count.value = conterStore.count;
  doubleCount.value = conterStore.doubleCount;
}
const usertest=()=>{
  userModel.uid = 1001
  console.log(userModel.uid)
}
onMounted(() => {
});
</script>

<style scoped>

</style>